package com.zhongdone.pattern.structural.adapter.logindemo2;

import com.zhongdone.pattern.structural.adapter.logindemo1.ResultMsg;

public class LoginForTokenAdapter extends AbstractAdapter {
    @Override
    public boolean support(Object adapter) {
        return adapter instanceof LoginForTokenAdapter;
    }

    @Override
    public ResultMsg login(String id, Object adapter) {
        if(support(adapter)){
            return null;
        }
        return super.loginForRegist(id, null);
    }
}